package com.aco.party.enums;

/**
 * Created by WangShijun on 2016/4/13.
 */
public enum QuestionStatusEnum {
    正在审核中("正在审核中"),
    审核通过("审核通过"),
    审核不通过("审核不通过"),
    推荐("推荐"),
    显示("显示"),
    隐藏("隐藏"),
    NULL("");

    private String desc;


    public String getDesc() {
        return desc;
    }

    QuestionStatusEnum(String desc){
        this.desc = desc;
    }

    public static QuestionStatusEnum getQuestionStatusEnum(String desc){
        for (QuestionStatusEnum type : QuestionStatusEnum.values()) {
            if(type.desc.equals( desc))
                return type;
        }
        return NULL;
    }
}
